@REM =====================================================

set TARFOLDER=%OUTPUT%_x86
echo Clean %TARFOLDER%
del %TARFOLDER%\mimetype
rd /s /q %TARFOLDER%\icon

@REM 删除license
rd /s /q "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\Licenses"
rd /s /q "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\WebKit"

@REM 删除部分web组件
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\CaptiveAppEntry.exe"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF32_ext.dll"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF64_ext.dll"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF64.dll"

@REM 删除校验文件
del %TARFOLDER%\META-INF\signatures.xml
del %TARFOLDER%\META-INF\AIR\hash

@REM =====================================================

set TARFOLDER=%OUTPUT%_x64
echo Clean %TARFOLDER%
del %TARFOLDER%\mimetype
rd /s /q %TARFOLDER%\icon

@REM 删除license
rd /s /q "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\Licenses"
rd /s /q "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\WebKit"

@REM 删除部分web组件
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\CaptiveAppEntry.exe"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF32_ext.dll"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF64_ext.dll"
del "%TARFOLDER%\Adobe AIR\Versions\1.0\Resources\NPSWF32.dll"

@REM 删除校验文件
del %TARFOLDER%\META-INF\signatures.xml
del %TARFOLDER%\META-INF\AIR\hash

echo CleanUp Done!